{extend name="admin/public:layout" /}
{block name="title"}企业库管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 企业管理</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="toolbar">
                <div class="pull-left">
                    <a class="btn btn-primary" href="{:url('add')}">
                        <i class="fa fa-plus"></i>&nbsp;添加企业
                    </a>
                </div>
                <div class="pull-right">
                    <form class="form-inline" method="post">
                        <div class="form-group">
                            <select class="form-control" name="searchKey">
                                <option value="company_name">企业名称</option>
                                <option value="company_tel">企业电话</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <input class="form-control" name="searchText" type="text" placeholder="检索关键词">
                            </div>
                        </div>
                        <button type="submit" class="btn btn-info">
                            <i class="fa fa-search"></i> 搜索
                        </button>
                    </form>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="row">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th width="50">#</th>
                        <th>企业名称</th>
                        <th>所属部门</th>
                        <th>企业电话</th>
                        <th>企业所在地区</th>
                        <th>审核状态</th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="comList" id="vo"}
                    <tr>
                        <td>{$vo.company_id}</td>
                        <td>{$vo.company_name}</td>
                        <td>{$vo.dept_name}</td>
                        <td>{$vo.company_tel}</td>
                        <td>{$vo.company_address}</td>
                        <td>{$vo.examine_text}</td>
                        <td>
                            <a href="{:url('edit',['company_id'=>$vo['company_id']])}">编辑</a>
                            <a href="javascript:;" onclick="doAction(this);"
                               data-msg="确认操作吗？" data-url="{:url('del')}" data-params="company_id={$vo.company_id}">
                                删除
                            </a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div class="page-bar">{$comList->render()}</div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
</script>
{/block}